package thread;

public class ThreadDemo{
    public static void main(String[] args) {
        Thread t1 = new ThreadDemo1();
        Thread t2 = new ThreadDemo2();
        Thread t3 = new ThreadDemo3();
        t1.start();
        t2.start();
        t3.start();
    }
}
class ThreadDemo1 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("你");
        }
    }
}
class ThreadDemo2 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("我");
        }
    }
}
class ThreadDemo3 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("他");
        }
    }
}
